VHA algorithm